package cc.comac.mom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cc.comac.mom.entity.base.BaseResultEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@TableName("quality_qar_basic_standard_requirement")
@Data
public class QualityQarBasicStandardRequirementEntity extends BaseResultEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@TableField("requirement_id")
	@TableId(value = "requirement_id",type = IdType.INPUT)
	private long id;
	private String requirementType;
	private long qarBasicStandardId;
	private String requirementName;
	private String matNumber;
	private int testItemQuatity;
	private String remark;

	private String aircraftLimit;
	private String other;
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!(obj instanceof QualityQarBasicStandardRequirementEntity)) {
			return false;
		}
		QualityQarBasicStandardRequirementEntity other = (QualityQarBasicStandardRequirementEntity) obj;
		if (requirementName == null) {
			return other.requirementName == null;
		}
		return requirementName.equals(other.requirementName);
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((requirementName == null) ? 0 : requirementName.hashCode());
		return result;
	}

	
	
}
